<%@ page language="java" import="java.util.*,com.qm.hibernate.Tblog"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib prefix="s"
	uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>好友空间-日志</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../Css/styles.css">
</head>

<body>

	<%
		Tblog t = (Tblog) session.getAttribute("hisJournal");
		String title = t.getTitle();
		String content = t.getContent();
		String[] commentFloor = { "沙发", "板凳", "地毯", "地板", "地下室", "地基",
				"地壳", "地幔", "地核" };
		int count = 0;
	%>

	<%@ include file="../Public/hishomeHeader.jsp"%>

	<div id="container">
		<div id="myjournal">
			<h2><%=title%></h2>
			<p><%=content%></p>

			<h3 style="color:green">评论</h3>

			<s:iterator id="list" value="#session.blogComments">
				<%
					if (count < 9) {
				%>
				<%=commentFloor[count++]%>
				<%
					} else
				%><%="第" + (++count) + "楼:"%>
				<p>
					<span style="color:blue;font-family:'宋体'"> <s:property
							value="content" /> 
							
							</span>
				</p>				
			</s:iterator>
			<br />
			 <span style="color:green">您也随便说两句?</span>
			<form action="blogComment">
			<textarea style="height:100" name="content"></textarea>
			<input type="submit" style="float:right" value="提交回复" />
		</form>
		</div>
	</div>
	<div id="footer"></div>
</body>
</html>
